package com.yundingai.service;

import com.yundingai.domain.entity.AllUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yundingai.domain.vo.LoginVo;
import com.yundingai.utils.ResultObj;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

/**
* @author liyuxiang
* @description 针对表【all_user(用户信息表：记录用户信息)】的数据库操作Service
* @createDate 2025-07-16 12:43:19
*/
public interface AllUserService extends IService<AllUser> {

    void saveAvatarUrl(Integer userId,String avatarUrl);

    LoginVo login(String username, String password);
    void register(String username,String password,String email);


    Integer findUserRole(String username);

    void updateAvatarUrl(Integer userId,String avatarUrl);

    /**
     * 获取用户总数
     * @return 用户总数
     */
    Integer getTotalUsers();

    void updateUserInfo(AllUser allUser);

    void updatePassword( Integer userId,  String password);
}
